package com.qujia.label.service.impl;
import com.qujia.label.domain.CustomerLabelDemo;
import com.qujia.label.mapper.CustomerLabelDemoHistoryMapper;
import com.qujia.label.mapper.CustomerLabelDemoMapper;
import com.qujia.label.service.ICustomerLabelDemoHistoryService;
import com.qujia.label.service.ICustomerLabelDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户标签Service业务层处理
 *
 * @author qujia
 * @date 2021-06-15
 */
@Service
public class CustomerLabelDemoHistoryServiceImpl implements ICustomerLabelDemoHistoryService
{
    @Autowired(required = false)
    private CustomerLabelDemoHistoryMapper customerLabelDemoHistoryMapper;

    /**
     * 查询用户标签列表
     *
     * @param customerLabelDemo 用户标签
     * @return 用户标签
     */
    @Override
    public List<CustomerLabelDemo> selectCustomerLabelDemoList(CustomerLabelDemo customerLabelDemo) {
        return customerLabelDemoHistoryMapper.selectCustomerLabelDemoList(customerLabelDemo);
    }

    @Override
    public List<CustomerLabelDemo> selectPhoneCustomerLabelList(CustomerLabelDemo customerLabelDemo) {
        return customerLabelDemoHistoryMapper.selectPhoneCustomerLabelList(customerLabelDemo);
    }

    /**
     * 查询新用户的信息
     * @param customerLabelDemo
     * @return
     */
    public List<CustomerLabelDemo> selectNewAppUser(CustomerLabelDemo customerLabelDemo){
        return  customerLabelDemoHistoryMapper.selectNewAppUser(customerLabelDemo);
    }
    /***
     * 二次查询
     * @param customerLabelDemo
     * @return
     */
    @Override
    public List<CustomerLabelDemo> secondCustomerLabelDemoList(CustomerLabelDemo customerLabelDemo) {
        return customerLabelDemoHistoryMapper.secondCustomerLabelDemoList(customerLabelDemo);
    }
}
